public class ScientificResearchResults {
    public static void main(String identity) {
        System.out.println("********************");
        System.out.println("请选择科研成果类型:");
        System.out.println("1.科技成果奖");
        System.out.println("2.论文");
        System.out.println("3.作品");
        System.out.println("9.返回上层");
        System.out.println("0.退出");
        System.out.println("********************");
        System.out.print("请输入序号:");
        String i;
        boolean status = true;
        if (identity.equals("Counselor")) {
            while (status) {
                i = Main.in.nextLine();
                switch (i) {
                    case "1":
                        status = false;
                        AchievementAward.Check();
                        break;
                    case "2":
                        status = false;
                        Paper.Check();
                        break;
                    case "3":
                        status = false;
                        Work.Check();
                        break;
                    case "9":
                        Check.main(identity);
                        break;
                    case "0":
                        System.exit(0);
                    default:
                        System.out.print("输入有误,请重新输入:");
                }
            }
        }
        else {
            while (status) {
                i = Main.in.nextLine();
                switch (i) {
                    case "1":
                        status = false;
                        AchievementAward.Write();
                        break;
                    case "2":
                        status = false;
                        Paper.Write();
                        break;
                    case "3":
                        status = false;
                        Work.Write();
                        break;
                    case "9":
                        Write.main(identity);
                        break;
                    case "0":
                        System.exit(0);
                    default:
                        System.out.print("输入有误,请重新输入:");
                }
            }
        }
    }
}
